
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-wideh,initial-scale">
    <link rel="stylesheet" href=css/login.css>
    <script type="text/javascript" src="js/jquery-3.5.1.js"></script>
    <title>登录</title>
    <script type="text/javascript">
        $(function () {
            $("#pagecode").click(function () {
                $("#pagecode").attr("src","/qfshop_war_exploded/code?method=createCode&t="+Math.random());
            });
        })
    </script>
</head>

<body>
<section>
    <!--背景色-->
    <div class="color"></div>
    <div class="color"></div>
    <div class="color"></div>
    <div class="box">
        <!--背景圆-->
        <div class="circlre" style="--x:0"></div>
        <div class="circlre" style="--x:1"></div>
        <div class="circlre" style="--x:2"></div>
        <div class="circlre" style="--x:3"></div>
        <div class="circlre" style="--x:4"></div>
        <!--登录框-->
        <div class="container">
            <div class="form">
                <h2>河南工业大学</h2>
                <h2>运动会管理系统</h2>
                <form action="LoginServlet" method="post">
                    <div class="inputBox">
                        <input type="text" placeholder="用户名" name="id">
                    </div>
                    <div class="inputBox">
                        <input type="password" placeholder="密码" name="password">
                    </div>
                    <div class="inputBox">
                        <input type="text" placeholder="管理员1运动员2裁判员3志愿者4"name="identity" id="identity" required="required">
                    </div>

                    <div class="inputBox">
                        <input type="text" placeholder="验证码" name="verifyCode" id="verifyCode" required="required">
                        <img src="CodeServlet" id="code"><a href="login.jsp" onclick="fresh()">看不清</a>
                    </div>
                    <%
                        String info = (String) session.getAttribute("loginInfo");
                        if (info != null){
                            out.print(info);
                        }
                    %>
                    <div class="inputBox">
                        <input type="submit" value="登录">
                    </div>
                    <p class="forget">没有账户？
                        <a href="register.jsp">点击注册</a>
                    </p>
                    <span style="text-align: center">${msg}</span>
                </form>

            </div>
        </div>
    </div>
</section>
</body>

</html>

